from django.urls import path
from rest_framework.routers import DefaultRouter

from books import views

urlpatterns=[
    path('login/',views.UserView.as_view()),
    path('phone/',views.PhoneView.as_view()),
    path('phonelogin/',views.PhoneLogin.as_view()),
    path('detail/',views.DetailView.as_view()),
    path('detail/',views.DetailView.as_view()),
    path('book/',views.BookView.as_view()),
    path('comment/',views.CommentView.as_view()),
    path('commentlist/',views.CommentListView.as_view()),
]
router=DefaultRouter()
router.register('books',views.BooksView,basename='books'),
urlpatterns+=router.urls